<%-- 
    Document   : right
    Created on : Jun 19, 2012, 12:19:12 PM
    Author     : Owner
--%>

<%@include file="/jsp/includeHead.jsp"%>

<html>
    <head></head>
    <body>

        <%if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 0) {%>
        <table cellspacing="5px" border="1" >
            <tr>
                <td align="center"><h3>PRODUCT CATEGORIES</h3></td>
            </tr>
            <tr>
                <td>
                    <logic:present name="categoryList" scope="request">
                        <ul>
                            <logic:iterate id="categ" name="categoryList" scope="request">                               
                                <li><a href="./product.do?action=showProductByCategory&categoryId=<bean:write name="categ" property="categoryId"/>&categoryName=<bean:write name="categ" property="categoryName"/>">
                                        <bean:write name="categ" property="categoryName"/></a>
                                </li>
                            </logic:iterate>
                        </ul>
                    </logic:present>
                </td>
            </tr>

            <tr>
                <td align="center"><h3>SHOPPING OPTIONS</h3></td>
            </tr>
            <tr>
                <td><strong>By Price</strong></td>
            </tr>
            <tr>
                <td>
                    <ul>
                        <li><a href="./product.do?action=showProductByPrice&min=500&max=1000">500 - 1,000</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=1000&max=2500">1,000 - 2,500</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=2500&max=5000">2,500 - 5,000</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=5000&max=10000">5,000 - 10,000</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=10000&max=20000">10,000 - 20,000</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=0&max=20000">Over Rs. 20,000</a></li>
                    </ul>
                </td>
            </tr>
            <tr>
                <td><strong>By Brands</strong></td>
            </tr>
            <tr>
                <td>
                    <logic:present name="brandList" scope="request" >
                        <ul>
                            <logic:iterate id="brands"  name="brandList" scope="request">
                                <li><a href="./product.do?action=showProductByBrand&brandId=<bean:write name="brands" property="brandId"/>&brandName=<bean:write name="brands" property="brandName"/>">
                                        <bean:write name="brands" property="brandName"/></a></li>
                                    </logic:iterate>
                            <li><a href="./brand.do?action=showAllBrands">more</a></li>
                        </ul>
                    </logic:present>
                </td>
            </tr>
            <tr>
                <td align="center"><h3>NEWSLETTER SIGN-UP</h3></td>
            </tr>
            <tr>
                <td>
                    <html:form action="/NewsLetter" method="post">
                        <table>
                            <tr>
                                <td colspan="2">
                                    <span> Receive the latest <br/>sales and promotions <br/>from our store!</span>
                                </td>
                            </tr>                           
                            <tr>
                                <td colspan="2"><html:text property="newsLetterEmail" /></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div id="errdividnl" >
                                        <span id="errspanidnl"></span>
                                        <html:errors property="errNewsLetter"/>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align: bottom;">
                                    <a onclick="javascript:return subscribe('./NewsLetter.do?action=subscribeNewsletter','NewsLetterBean')">
                                        <img src="images/submitsmall.png" alt="Submit" onmouseout="src='images/submitsmall.png'" onmouseover="src='images/submitsmall.png'"/></a>
                                </td>
                                <td>
                                    <a onclick="javascript:return subscribe('./NewsLetter.do?action=unsubscribeNewsletter','NewsLetterBean')">Unsubscribe</a>
                                </td>
                            </tr>
                        </table>
                    </html:form>
                </td>
            </tr>

        </table>
        <%} else if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 1) {%>
        <table cellspacing="5px" border="1" >
            <tr>
                <td align="center"><h3>PRODUCT CATEGORIES</h3></td>
            </tr>
            <tr>
                <td>
                    <logic:present name="categoryList" scope="request">
                        <ul>
                            <logic:iterate id="categ" name="categoryList" scope="request">
                                <li><a href="./product.do?action=showProductByCategory&categoryId=<bean:write name="categ" property="categoryId"/>&categoryName=<bean:write name="categ" property="categoryName"/>">
                                        <bean:write name="categ" property="categoryName"/></a>
                                </li>
                            </logic:iterate>
                        </ul>
                    </logic:present>
                </td>
            </tr>

            <tr>
                <td align="center"><h3>SHOPPING OPTIONS</h3></td>
            </tr>
            <tr>
                <td><strong>By Price</strong></td>
            </tr>
            <tr>
                <td>
                    <ul>
                        <li><a href="./product.do?action=showProductByPrice&min=500&max=1000">500 - 1,000</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=1000&max=2500">1,000 - 2,500</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=2500&max=5000">2,500 - 5,000</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=5000&max=10000">5,000 - 10,000</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=10000&max=20000">10,000 - 20,000</a></li>
                        <li><a href="./product.do?action=showProductByPrice&min=0&max=20000">Over Rs. 20,000</a></li>
                    </ul>
                </td>
            </tr>
            <tr>
                <td><strong>By Brands</strong></td>
            </tr>
            <tr>
                <td>
                    <logic:present name="brandList" scope="request" >
                        <ul>
                            <logic:iterate id="brands"  name="brandList" scope="request">
                                <li><a href="./product.do?action=showProductByBrand&brandId=<bean:write name="brands" property="brandId"/>&brandName=<bean:write name="brands" property="brandName"/>">
                                        <bean:write name="brands" property="brandName"/></a></li>
                                    </logic:iterate>
                            <li><a href="./brand.do?action=showAllBrands">more</a></li>
                        </ul>
                    </logic:present>
                </td>
            </tr>
            <tr>
                <td align="center"><h3>NEWSLETTER SIGN-UP</h3></td>
            </tr>
            <tr>
                <td>
                    <html:form action="/NewsLetter" method="post">
                        <table>
                            <tr>
                                <td colspan="2">
                                    <span> Receive the latest <br/>sales and promotions <br/>from our store!</span>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2"><html:text property="newsLetterEmail" /></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div id="errdividnl" >
                                        <span id="errspanidnl"></span>
                                        <html:errors property="errNewsLetter"/>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align: bottom;">
                                    <a onclick="javascript:return subscribe('./NewsLetter.do?action=subscribeNewsletter','NewsLetterBean')">
                                        <img src="images/submitsmall.png" alt="Submit" onmouseout="src='images/submitsmall.png'" onmouseover="src='images/submitsmall.png'"/></a>
                                </td>
                                <td>
                                    <a onclick="javascript:return subscribe('./NewsLetter.do?action=unsubscribeNewsletter','NewsLetterBean')">Unsubscribe</a>
                                </td>
                            </tr>
                        </table>
                    </html:form>
                </td>
            </tr>

        </table>
        <%} else if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 2) {%>
        <div class="demo">
            <div class="docs">
                <h3 align="center" class="docs">Navigation Menu</h3>

                <div id="accordionResizer" class="ui-widget-content">

                    <div id="navigationMenu">
                        <h3 class="single-menu-item">
                            <% if (session.getAttribute("loginUserId") != null && session.getAttribute("loginUserId") != "") {%>
                            <a href="./menuAction.do?action=showAdminHome" >Home</a>
                            <%} else {%>
                            <a href="./menuAction.do?action=showHomeBeforeLogin" >Home</a>
                            <%}%>
                        </h3>
                        <div class="single-menu-container"> </div>
                        <h3><a href="#">Admin System</a></h3>
                        <div>
                            <ul>
                                <li><a href="./admin.do?action=showManageUserRoles">User Roles</a></li>
                                <li><a href="./admin.do?action=showManageAdmin">Admin Users</a></li>
                            </ul>
                        </div>
                        <h3><a href="#">Orders</a></h3>
                        <div>
                            <ul>
                                <li><a href="./payment.do?action=showManageOrders">All Orders</a></li>
                                <li><a href="#">Completed Orders</a></li>
                                <li><a href="#">Pending System</a></li>
                            </ul>
                        </div>
                        <h3><a href="#">Customer Management</a></h3>
                        <div>
                            <ul>
                                <li><a href="./userAccount.do?action=showManageUsers">Customer</a></li>
                                <li><a href="#">Newsletter</a></li>
                            </ul>
                        </div>
                        <h3><a href="#">Categories & Product</a></h3>
                        <div>
                            <ul>
                                <li><a href="./category.do?action=showManageCategory">Categories</a></li>
                                <li><a href="./product.do?action=showManageProducts">Products</a></li>
                                <li><a href="./brand.do?action=showManageBrand">Brands</a></li>
                            </ul>
                        </div>
                        <h3><a href="#">Site Content</a></h3>
                        <div>
                            <ul>
                                <li><a href="./admin.do?action=showManageHomePageImage">Home Page Ads</a></li>
                                <li><a href="#">Email Messages</a></li>
                                <li><a href="./menuAction.do?action=dealofTheDay">Deal of the Day</a></li>
                            </ul>
                        </div>
                        <h3><a href="#">Payments</a></h3>
                        <div>
                            <ul>
                                <li><a href="#">Banks</a></li>
                            </ul>
                        </div>
                        <h3><a href="#">Store Config</a></h3>
                        <div>
                            <ul>
                                <li><a href="#">Company Info</a></li>
                            </ul>
                        </div>
                    </div>

                </div><!-- End accordionResizer -->
            </div>


        </div><!-- End demo -->
        <%}%>



    </body>
</html>
